<!DOCTYPE html>
<html>
<head>
    <title>应付单确认</title>
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






    <style>

        .date1{
            box-sizing: border-box;
            padding: 5px 8px;
            border: 1px solid #e6e6e6;
            border-radius: 4px;
        }

        .checkDate1{
            background-color: #00bbcc;
            color: #fff;
        }

        @media screen and (min-width: 750px){
             .screenMrgin-bottom{
                 margin-bottom: 10px;
             }
        }

        @media screen and (min-width: 992px) {
            .screenMrgin-bottom {
                margin: 5px 0;
            }
        }


    </style>
</head>
<body class="ren-body">
<div id="rrapp" v-cloak>
    <form class="layui-form">
        <div class="form-content-box">
            <div class="left-before">
                <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                    应付单确认
                </div>
            </div>
            <div class="details-layui-row">
                <div class="layui-row layui-form-row-content">
                    <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                        <label class="layui-form-label">应付单号：</label>
                        <div class="layui-input-inline">
                            <input
                                    type="text"
                                    class="layui-input searchVal"
                                    v-model="payment.paymentNo"
                                    disabled/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                        <label class="layui-form-label">付款类型：</label>
                        <div class="layui-input-inline">
                            <input
                                    type="text"
                                    class="layui-input searchVal"
                                    v-model="collectionTypeStr"
                                    disabled/>
                        </div>

                    </div>

                    <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                        <label class="layui-form-label">{{title}}：</label>
                        <div class="layui-input-inline">
                            <input
                                    type="text"
                                    class="layui-input searchVal"
                                    v-model="payment.copeWithAmount"
                                    disabled/>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                        <label class="layui-form-label" style="color: red">应付{{title}}：</label>
                        <div class="layui-input-inline">
                            <input
                                    type="text"
                                    class="layui-input searchVal"
                                    v-model="payment.copeWithAmount"
                                    style="color: red"
                                    disabled/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                        <label class="layui-form-label">{{title}}已付金额：</label>
                        <div class="layui-input-inline">
                            <input
                                    type="text"
                                    class="layui-input searchVal"
                                    v-model="payment.prepaidAmount"
                                    disabled/>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 表单 修改 -->
        <div class="form-content-box">
            <div class="list-search-sup-title new-layui-title border-bottom-dashed">
            </div>
            <div class="form-content-session-box">
                <div class="card">
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">付款时间：</label>
                            <div class="layui-input-inline">
                                <div class="layui-col-md5 layui-col-sm12 layui-col-xs12 screenMrgin-bottom">
                                    <span class="date1" :class="isType == 1?'checkDate1':''"  @click="selectPayDate(1)" id="pay1" >当前时间付款</span>
                                    <span class="date1"  :class="isType == 2?'checkDate1':''" @click="selectPayDate(2)" id="pay2">应付时间付款</span>
                                    <span class="date1"  :class="isType == 3?'checkDate1':''" @click="selectPayDate(3)" id="pay3">自定义时间</span>
                                </div>
                                <div class="layui-col-md6 layui-col-sm6 layui-col-xs6"  style="display: none;" id="pay">
                                    <input type="text" class="layui-input"  id="paymentTime"
                                           v-model="payment.paymentTime" placeholder="请选择日期" readonly>
                                </div>
                            </div>


                        </div>

                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">实际付款金额：</label>
                            <div class="layui-input-inline">
                                <input
                                        type="text"
                                        class="layui-input searchVal"
                                        v-model="payment.pendingPaymentAmount"
                                        lay-verify="paidAmountVerify"
                                        placeholder=""/>
                            </div>
                        </div>

                        <div v-show="paymentItems">
                            <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                <label class="layui-form-label">支付类型：</label>
                                <div class="layui-input-inline">
                                    <select lay-filter="paymentMethod" v-model="payment.paymentMethod">
                                        <option value="0">其他</option>
                                        <option value="1">微信小程序支付</option>
                                        <option value="2">公帐</option>
                                        <option value="3">私帐</option>
                                        <option value="4">银行卡</option>
                                        <option value="5">支付宝</option>
                                        <option value="6">微信</option>
                                        <option value="7">信用卡</option>
                                        <option value="8">pos</option>
                                        <option value="9">现金</option>
                                    </select>
                                </div>
                            </div>

                        </div>

                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">备注：</label>
                            <div class="layui-input-inline">
                                <textarea placeholder="如果需要备注，请记录备注信息" v-model="payment.note"
                                          id="remarks" class="layui-textarea"></textarea>

                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">上传凭证:</label>
                            <div class="layui-input-inline">
                                <div class="layui-input-inline-upload">
                                    <div :id="fileLstId" class="layui-input-inline-upload-show box-rect"
                                         v-for="(item,index) in fileLst">
                                        <div v-show="item.typeFile == 1"
                                             class="layui-input-inline-upload-button">
                                            <img :src="imageURL + item.url" class="view-img">
                                        </div>
                                        <div v-show="item.typeFile != 1"
                                             class="layui-input-inline-upload-button">
                                            {{item.nameAccessory}}
                                        </div>
                                        <div class="layui-input-inline-upload-show-delete btn-event"
                                             @click="delFile(item.id)">
                                            删除
                                        </div>
                                    </div>
                                    <div class="layui-input-inline-upload-button box-rect box-rect-event"
                                         id="addFile">
                                        <img src="../../statics/images/inline-upload@2x.png">
                                    </div>
                                </div>
                                <div class="layui-input-inline-upload-text" style="padding-bottom: 10px">
                                    附件说明：附件最大支持50M，
                                    <br/>
                                    支持格式：PDF、Word、Excel、JPG、PNG 、ZIP、RAR
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="float-btn-group">
            <a class="layui-btn reset-btn" @click="cancel">取消</a>
            <a class="layui-btn search-btn" lay-submit lay-filter="saveOrUpdate">保存</a>
        </div>
    </form>

</div>

<script src="../../statics/js/modules/financial/paybillconfirm.js?_${.now?long}"></script>
</body>
</html>